-
Notifications
You must be signed in to change notification settings - Fork 61
Copying MCAD CRDs in Kustomize config instead of referencing them #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ced548c
to
026ab8e
Compare
026ab8e
to
07f6abf
Compare
5a20ccb
to
b2966ee
Compare
24e8620
to
5703472
Compare
5703472
to
72524ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
138c2eb
to
5eb6db6
Compare
Makefile
Outdated
.PHONY: check_yq | ||
check_yq: | ||
@command -v yq >/dev/null 2>&1 || (echo "Installing wget..."; yum install -y wget) | ||
@command -v yq >/dev/null 2>&1 || (echo "Installing yq..."; wget https://github.com/mikefarah/yq/releases/download/v4.2.0/yq_linux_amd64.tar.gz -O - |\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be YQ
Makefile
Outdated
|
||
.PHONY: check_yq | ||
check_yq: | ||
@command -v yq >/dev/null 2>&1 || (echo "Installing wget..."; yum install -y wget) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be
@command -v wget
5eb6db6
to
e1f3759
Compare
Makefile
Outdated
process_sections: | ||
@mkdir -p $(output_dir) | ||
@for section_file in $(temp_dir)/section_*; do \ | ||
metadata_name=$$(yq e '.metadata.name' $$section_file); \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you're calling YQ
If you check out this: https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md On ubuntu latest wget is preinstalled, and yum is not :) |
Makefile
Outdated
$(CONTROLLER_GEN) rbac:roleName=manager-role webhook paths="./..." | ||
$(SED) -i -E "s|(- )\${MCAD_REPO}.*|\1\${MCAD_CRD}|" config/crd/mcad/kustomization.yaml | ||
$(KUSTOMIZE) build config/crd/mcad > config/crd/mcad.yaml && make split_yaml FILE=config/crd/mcad.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont call this
Makefile
Outdated
$(CONTROLLER_GEN) rbac:roleName=manager-role webhook paths="./..." | ||
$(SED) -i -E "s|(- )\${MCAD_REPO}.*|\1\${MCAD_CRD}|" config/crd/mcad/kustomization.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too
Issue link
Closes #353
What changes have been made
Refactored to copy MCAD CRDs instead of referencing them.
Verification steps
make manifests
and ensure that the config/crd/mcad/kustomization.yaml shows the mcad version (not 0.0.0.0).make install
and ensure that the required CRDs have been created and that everything runs as expected.Checks